<#include "/tmpl/base/head.ftl">

<!DOCTYPE html>
<html>
<@Head titleSuffix="发布新品">
<link rel="stylesheet" type="text/css" href="/style/style.css"/>
</@Head>
<body>
<div class="n-support">请使用Chrome、Safari等webkit内核的浏览器！</div>
<div class="n-head">
    <div class="g-doc f-cb" id="head_nav">

    </div>
</div>
<div class="g-doc" id="page-buttom">
    <div class="m-tab m-tab-fw m-tab-simple f-cb">
        <h2>内容发布</h2>
    </div>
    <div class="n-public">
        <form class="m-form m-form-ht" id="form" method="post" onsubmit="return false;" autocomplete="off">
            <div class="fmitem">
                <label class="fmlab">标题：</label>
                <div class="fmipt"><input class="u-ipt ipt" name="title" autofocus="" placeholder="2-80字符"></div>
            </div>
            <div class="fmitem">
                <label class="fmlab">摘要：</label>
                <div class="fmipt"><input class="u-ipt ipt" name="summary" placeholder="2-140字符"></div>
            </div>
            '
            <div class="fmitem">
                <label class="fmlab">图片：</label>
                <div class="fmipt" id="uploadType">
                    <input name="pic" type="radio" value="url" checked=""> 图片地址
                    <input name="pic" type="radio" value="file"> 本地上传
                </div>
            </div>
            <div class="fmitem">
                <label class="fmlab"></label>
                <div class="fmipt" id="urlUpload">
                    <input class="u-ipt ipt" name="image" placeholder="图片地址"></div>
                <div class="fmipt" id="fileUpload" style="display:none">
                    <input class="u-ipt ipt" name="file" type="file" id="fileUp">
                    <button class="u-btn u-btn-primary" id="upload">上传</button>
                </div>
            </div>
            <div class="fmitem">
                <label class="fmlab">正文：</label>
                <div class="fmipt">
                    <textarea class="u-ipt" name="detail" rows="10" placeholder="2-1000个字符"></textarea></div>
            </div>
            <div class="fmitem">
                <label class="fmlab">价格：</label>
                <div class="fmipt">
                    <input class="u-ipt price" name="price">元
                </div>
            </div>
            <div class="fmitem fmitem-nolab fmitem-btn">
                <div class="fmipt">
                    <button type="button" class="u-btn u-btn-primary u-btn-lg" id="public-btn">发 布</button>
                </div>
            </div>
        </form>
        <span class="imgpre"><img src="" alt="" id="imgpre"></span>
    </div>
</div>
<div class="n-foot">
    <p>版权所有：网易大作业<a href="http://you.163.com/">邮件事业部</a>Kerr Wang
    </p>
</div>
<div style="display: none;"></div>
<div style="display: none;"></div>
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script>
    var user_Data = ${JSONObject.toJSON(user)};
</script>
<script type="text/javascript" src="/js/global.js"></script>
<script type="text/javascript" src="/js/public.js"></script>
</body>
</html>